from app.exts import db
from app.models.po.base_po import BasePO


class GaoLuDiagnoseDataPO(db.Model, BasePO):
    __tablename__ = "gaolu_diagnose_data"
    __bind_key__ = "serve_engine"
    id = db.Column(db.Integer, primary_key=True)
    date_time = db.Column(db.DateTime())
    CG_LT_GL_GL04_Rliaopi = db.Column(db.Float())
    CG_LT_GL_GL04_RRLB = db.Column(db.Float())
    CG_LT_GL_GL04_Rcokerate = db.Column(db.Float())
    CG_LT_GL_GL04_RLFLL = db.Column(db.Float())
    CG_LT_GL_GL04_RFYLL = db.Column(db.Float())
    CG_LT_GL_GL04_RTQXZS = db.Column(db.Float())
    CG_LT_GL_GL04_RSBYCZB = db.Column(db.Float())
    CG_LT_GL_GL04_RXBYCZB = db.Column(db.Float())
    CG_LT_GL_GL04_RLLRSWD = db.Column(db.Float())
    CG_LT_GL_GL04_RGFDNKG = db.Column(db.Float())
    CG_LT_GL_GL04_RLDWD = db.Column(db.Float())
    CG_LT_GL_GL04_RRFH = db.Column(db.Float())
    CG_LT_GL_GL04_RFZWD = db.Column(db.Float())
    CG_LT_GL_GL04_RchutieCi = db.Column(db.Float())
    CG_LT_GL_GL04_Rtswd = db.Column(db.Float())
    CG_LT_GL_GL04_RSi_Ti = db.Column(db.Float())
    CG_LT_GL_GL04_RMg_Al = db.Column(db.Float())
    CG_LT_GL_GL04_R34m = db.Column(db.Float())
    CG_LT_GL_GL04_R26m = db.Column(db.Float())
    CG_LT_GL_GL04_R24m = db.Column(db.Float())
    CG_LT_GL_GL04_R17m = db.Column(db.Float())
    CG_LT_GL_GL04_Rluxin2 = db.Column(db.Float())
    CG_LT_GL_GL04_RbengzuoguanCi = db.Column(db.Float())
    CG_LT_GL_GL04_RjianfengCi = db.Column(db.Float())
    CG_LT_GL_GL04_Rquanjiaofuhe = db.Column(db.Float())
    CG_LT_GL_GL04_RChanliang = db.Column(db.Float())
    CG_LT_GL_GL04_RMQLYL = db.Column(db.Float())
    CG_LT_GL_GL04_RRFWD = db.Column(db.Float())
    CG_LT_GL_GL04_Rtiecha = db.Column(db.Float())
    CG_LT_GL_GL04_RR2 = db.Column(db.Float())
    CG_LT_GL_GL04_Rshuiwencha = db.Column(db.Float())
    CG_LT_GL_GL04_R21m = db.Column(db.Float())

    def __repr__(self):
        return "GaoLuDiagnoseDataPO"


class GaoLuDiagnoseScorePO(db.Model, BasePO):
    __tablename__ = "gaolu_diagnose_score"
    __bind_key__ = "serve_engine"
    id = db.Column(db.Integer, primary_key=True)
    date_time = db.Column(db.DateTime())
    CG_LT_GL_GL04_Rliaopi = db.Column(db.Float())
    CG_LT_GL_GL04_RRLB = db.Column(db.Float())
    CG_LT_GL_GL04_Rcokerate = db.Column(db.Float())
    CG_LT_GL_GL04_RLFLL = db.Column(db.Float())
    CG_LT_GL_GL04_RFYLL = db.Column(db.Float())
    CG_LT_GL_GL04_RTQXZS = db.Column(db.Float())
    CG_LT_GL_GL04_RSBYCZB = db.Column(db.Float())
    CG_LT_GL_GL04_RXBYCZB = db.Column(db.Float())
    CG_LT_GL_GL04_RLLRSWD = db.Column(db.Float())
    CG_LT_GL_GL04_RGFDNKG = db.Column(db.Float())
    CG_LT_GL_GL04_RLDWD = db.Column(db.Float())
    CG_LT_GL_GL04_RRFH = db.Column(db.Float())
    CG_LT_GL_GL04_RFZWD = db.Column(db.Float())
    CG_LT_GL_GL04_RchutieCi = db.Column(db.Float())
    CG_LT_GL_GL04_Rtswd = db.Column(db.Float())
    CG_LT_GL_GL04_RSi_Ti = db.Column(db.Float())
    CG_LT_GL_GL04_RMg_Al = db.Column(db.Float())
    CG_LT_GL_GL04_R34m = db.Column(db.Float())
    CG_LT_GL_GL04_R26m = db.Column(db.Float())
    CG_LT_GL_GL04_R24m = db.Column(db.Float())
    CG_LT_GL_GL04_R17m = db.Column(db.Float())
    CG_LT_GL_GL04_Rluxin2 = db.Column(db.Float())
    CG_LT_GL_GL04_RbengzuoguanCi = db.Column(db.Float())
    CG_LT_GL_GL04_RjianfengCi = db.Column(db.Float())
    CG_LT_GL_GL04_Rquanjiaofuhe = db.Column(db.Float())
    CG_LT_GL_GL04_RChanliang = db.Column(db.Float())
    CG_LT_GL_GL04_RMQLYL = db.Column(db.Float())
    CG_LT_GL_GL04_RRFWD = db.Column(db.Float())
    CG_LT_GL_GL04_Rtiecha = db.Column(db.Float())
    CG_LT_GL_GL04_RR2 = db.Column(db.Float())
    CG_LT_GL_GL04_Rshuiwencha = db.Column(db.Float())
    CG_LT_GL_GL04_R21m = db.Column(db.Float())
    zt = db.Column(db.Float())
    zb = db.Column(db.Float())
    cz = db.Column(db.Float())
    ltlg = db.Column(db.Float())
    zf = db.Column(db.Float())
    rule_id = db.Column(db.Integer)


class GaoLuDiagnoseCountPO(db.Model, BasePO):
    __tablename__ = "gaolu_diagnose_count"
    __bind_key__ = "serve_engine"
    id = db.Column(db.Integer, primary_key=True)
    date_time = db.Column(db.DateTime())
    CG_LT_GL_GL04_Rliaopi = db.Column(db.Float())
    CG_LT_GL_GL04_RRLB = db.Column(db.Float())
    CG_LT_GL_GL04_Rcokerate = db.Column(db.Float())
    CG_LT_GL_GL04_RLFLL = db.Column(db.Float())
    CG_LT_GL_GL04_RFYLL = db.Column(db.Float())
    CG_LT_GL_GL04_RTQXZS = db.Column(db.Float())
    CG_LT_GL_GL04_RSBYCZB = db.Column(db.Float())
    CG_LT_GL_GL04_RXBYCZB = db.Column(db.Float())
    CG_LT_GL_GL04_RLLRSWD = db.Column(db.Float())
    CG_LT_GL_GL04_RGFDNKG = db.Column(db.Float())
    CG_LT_GL_GL04_RLDWD = db.Column(db.Float())
    CG_LT_GL_GL04_RRFH = db.Column(db.Float())
    CG_LT_GL_GL04_RFZWD = db.Column(db.Float())
    CG_LT_GL_GL04_RchutieCi = db.Column(db.Float())
    CG_LT_GL_GL04_Rtswd = db.Column(db.Float())
    CG_LT_GL_GL04_RSi_Ti = db.Column(db.Float())
    CG_LT_GL_GL04_RMg_Al = db.Column(db.Float())
    CG_LT_GL_GL04_R34m = db.Column(db.Float())
    CG_LT_GL_GL04_R26m = db.Column(db.Float())
    CG_LT_GL_GL04_R24m = db.Column(db.Float())
    CG_LT_GL_GL04_R17m = db.Column(db.Float())
    CG_LT_GL_GL04_Rluxin2 = db.Column(db.Float())
    CG_LT_GL_GL04_RbengzuoguanCi = db.Column(db.Float())
    CG_LT_GL_GL04_RjianfengCi = db.Column(db.Float())
    CG_LT_GL_GL04_Rquanjiaofuhe = db.Column(db.Float())
    CG_LT_GL_GL04_RChanliang = db.Column(db.Float())
    CG_LT_GL_GL04_RMQLYL = db.Column(db.Float())
    CG_LT_GL_GL04_RRFWD = db.Column(db.Float())
    CG_LT_GL_GL04_Rtiecha = db.Column(db.Float())
    CG_LT_GL_GL04_RR2 = db.Column(db.Float())
    CG_LT_GL_GL04_Rshuiwencha = db.Column(db.Float())
    CG_LT_GL_GL04_R21m = db.Column(db.Float())
    zt = db.Column(db.Float())
    zb = db.Column(db.Float())
    cz = db.Column(db.Float())
    ltlg = db.Column(db.Float())
    rule_id = db.Column(db.Integer)


def __repr__(self):
    return "GaoLuDiagnoseDataPO"
